﻿<UserControl x:Class="Chapters.Chapter07.RowsPanelTester"
			 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
			 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
			 xmlns:Chapter07="clr-namespace:FSharp.Chapter7;assembly=FSharpLibrary">
	<UserControl.Resources>
	</UserControl.Resources>
	<DockPanel>
		<CheckBox Click="OnAnimateScroll">Animate Scrolling</CheckBox>
		<Border BorderBrush="Black"
				BorderThickness="1">

			<ScrollViewer x:Name="_sv"
						  CanContentScroll="True">
				<Chapter07:RowsPanel x:Name="_panel"
									 RowHeight="100">
					<Button Content="1" />
					<Button Content="2" />
					<Button Content="3" />
					<Button Content="4" />
					<Button Content="5" />
					<Button Content="6" />
					<Button Content="7" />
					<Button Content="8" />
					<Button Content="9" />
					<Button Content="10" />
					<Button Content="11" />
					<Button Content="12" />
					<Button Content="13" />
					<Button Content="14" />
					<Button Content="15" />
					<Button Content="16" />
					<Button x:Name="_lastBtn"
							Content="17" />
				</Chapter07:RowsPanel>
			</ScrollViewer>
		</Border>
	</DockPanel>
</UserControl>
